package com.suxin.exception.business;

import com.suxin.exception.AbstractRuntimeExceptionHandler;
import com.suxin.exception.Response;
import lombok.extern.slf4j.Slf4j;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Tang
 * @classname ExceptionOneHandler
 * @description [  ]
 * @date 2022/10/12 10:22
 */
@Slf4j
public class ExceptionOneHandler extends AbstractRuntimeExceptionHandler {

    public ExceptionOneHandler() {
    }

    @Override
    public Response handlerException(HttpServletRequest request, Exception e) {
        log.info(e.getMessage());
        // 打印日志 ...
        return Response.create().fail();
    }

}
